package jdklearn.collectionAndMap.map;

/**
 * author Veng Su
 * email  1344114844@qq.com
 * date   18-9-1 下午4:29
 */
import java.util.*;

enum Season
{
    SPRING,SUMMER,FALL,WINTER
}
public class TestEnumMap
{
    public static void main(String[] args)
    {
        //创建一个EnumMap对象，该EnumMap的所有key
        //必须是Season枚举类的枚举值
        EnumMap enumMap = new EnumMap(Season.class);
        enumMap.put(Season.SUMMER , "夏日炎炎");
        enumMap.put(Season.SPRING , "春暖花开");
        System.out.println(enumMap);
    }
}